package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Pallindrome_String {

	public static void main(String[] args) {
		
		System.out.println("Please enter a string");
		Scanner sc=new Scanner(System.in);
		
		String s1=sc.nextLine();
		
		String s2[]=s1.split("");
		
		String result=" ";
		
		for(int i=s2.length-1;i>=0;i--)
		{
			result=result+s2[i];
			
		}
		
		
		if(s1.equals(result.trim()))
		{
			System.out.println("It is pallindrome");
		}
		else
		{
			System.out.println("Not pallindrome");
		}

	}

}
